package com.suyang.syt.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/home")
public class FreeMarkerController {

	@RequestMapping("/index.do")
	public ModelAndView Index(HttpServletRequest request, HttpServletResponse response) {
		ModelAndView view = new ModelAndView("index/index");
		return view;
	}

	@RequestMapping("/teacher.do")
	public ModelAndView Teacher(HttpServletRequest request, HttpServletResponse response) {
		ModelAndView view = new ModelAndView("teacher/index");
		return view;
	}

	@RequestMapping("/train.do")
	public ModelAndView Train(HttpServletRequest request, HttpServletResponse response) {
		ModelAndView view = new ModelAndView("train/index");
		return view;
	}

	@RequestMapping("/download.do")
	public ModelAndView DownLoad(HttpServletRequest request, HttpServletResponse response) {
		ModelAndView view = new ModelAndView("download/index");
		return view;
	}
}